<%-- <%@page import="com.demoweb.model.dto.Score"%>
<%@page import="com.demoweb.model.dto.Board"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>


<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8" />
	<title>게시물 목록</title>
	<link rel="Stylesheet" href="/demoweb/styles/default.css" />
	<script type="text/javascript">
	function viewboard(boardno) {
		
		<%
		String pageNo = request.getParameter("pageno");
		if (pageNo == null || pageNo.length() == 0)
			pageNo = "1";
		%>
	}
	</script>
</head>
<body>

	<% pageContext.include("/WEB-INF/views/include/header.jsp"); %>
	
	
			
			<% List<Score> score = (List<Score>)request.getAttribute("scores"); %>
			<% if (score != null && score.size() > 0) { %>
		<!-- 	<table border="1" align="center">
				<tr style="background-color:beige;height:25px">
					<th style="width:50px">번호</th>
					<th style="width:300px">제목</th>
					<th style="width:150px">작성자</th>
					<th style="width:120px">작성일</th>
					<th style="width:80px">조회수</th>
				</tr>
				<% for (Board board : boards) { %>				
				<tr style="height:25px">
					<td style="text-align:center"><%= board.getBoardNo() %></td>
					<td style="text-align:left;padding:5px">
						
						<a href="view.action?boardno=<%= board.getBoardNo() %>">
						
						
						<a href="javascript:viewboard(<%= board.getBoardNo() %>);">
						<%= board.getTitle() %>
						</a>
						
						  <%= getTitleString(board) %>
					</td>
					<td style="text-align:center"><%= board.getWriter() %></td>
					<td style="text-align:center"><%= board.getRegDate() %></td>
					<td style="text-align:center"><%= board.getReadCount() %></td>
				</tr>
				<% } %>
			</table>  -->
			<% } else { %>
				<div style='text-align:center'>등록된 게시물이 없습니다.</div>
			<% } %>
			<br /><br />
			
			<%= request.getAttribute("pager").toString() %>
	
		</div>
	</div>

</body>
</html>

 --%>